package com.example.blog.mapper;

import com.example.blog.model.Comment;
import com.example.blog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Question CommentMapper
 * @Date 2023/1/24 15:07
 * @Solution
 */
@Mapper
public interface CommentMapper {
    public List<Comment> getByArtId(@Param("artId") int artId);
    public UserInfo getCommentNameByUid(@Param("uid") int uid);
    public int add(@Param("uid") int uid,@Param("blogId") int blogId,@Param("content") String content);
}
